package com.ecb.business.noAuthController;

import com.ecb.business.dto.api.ApiResult;
import com.ecb.business.dto.user.UserDTO;
import com.ecb.business.service.UserManageService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("user")
@Api(tags = "用户登陆")
public class UserController {

    @Autowired
    UserManageService userManageService;

    @PostMapping("login")
    @ApiOperation(value = "登陆",notes = "")
    public ApiResult login(@RequestBody UserDTO user ){
        return ApiResult.T(userManageService.userLogin(user));
    }


}
